package com.xnyzc.lhy.statistics.service.capacity;

import com.xnyzc.lhy.common.entity.Rv;
import com.xnyzc.lhy.statistics.entity.param.capacity.CapacityParam;
import com.xnyzc.lhy.statistics.entity.result.capacity.TransportCapacityLineChart;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 运力统计
 * </p>
 *
 * @Author: wangshuo
 * @since 2019-11-28
 */
public interface CapacityService{

    /**
     * 获取实时运力数据
     * @return Rv
     * */
    Rv getCapacityStatistical(CapacityParam capacityParam);

    /**
     * 保存运力数据
     */
    void getSaveCapacityStatistical();

    /**
     * 获取运力数据趋势折线集
     * @param capacityParam 折线集DTO
     * @return Rv
     * */
    Rv getHistoryCapacityStatistical(CapacityParam capacityParam);

    TransportCapacityLineChart summary(TransportCapacityLineChart transportCapacityLineChart, List<Map<String, Object>> resultMap);

    Integer chartType(List<Date> dates);

}
